package gtug.duesseldorf.client.ui;

import gtug.duesseldorf.client.res.CSS;

import java.util.List;

import com.google.gwt.user.client.ui.Composite;

public class WaveTextArea extends Composite {

	private final ScrollableTextPanel m_scrollableTextPanel;

	public WaveTextArea() {
		m_scrollableTextPanel = new ScrollableTextPanel();
		m_scrollableTextPanel.setStylePrimaryName(CSS.waveTextArea);

		initWidget(m_scrollableTextPanel);
	}

	public void clear() {
		m_scrollableTextPanel.clear();
	}

	public void append(List<String> lines) {
		m_scrollableTextPanel.append(lines);
	}

	public void setText(List<String> lines) {
		m_scrollableTextPanel.setText(lines);
	}
}
